.chartContainer {
  background: var(--ifm-background-surface-color);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.chartHeader {
  margin-bottom: 1.5rem;
  text-align: center;
}

.chartHeader h3 {
  margin: 0 0 0.5rem 0;
  color: var(--ifm-heading-color);
  font-size: 1.5rem;
}

.chartHeader p {
  margin: 0;
  color: var(--ifm-color-emphasis-600);
  font-size: 0.875rem;
}

.chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.barRow {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.barLabel {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.barMethod {
  font-weight: 600;
  font-size: 0.95rem;
}

.barVersion {
  font-size: 0.75rem;
  color: var(--ifm-color-emphasis-600);
}

.barContainer {
  flex: 1;
  background: var(--ifm-color-emphasis-100);
  border-radius: 4px;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  border-radius: 4px;
  transition: width 0.6s ease-out;
  position: relative;
}

.barValue {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.chartFooter {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ifm-color-emphasis-200);
  text-align: center;
}

.chartFooter p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ifm-color-emphasis-600);
}

.chartFooter a {
  color: var(--ifm-color-primary);
  text-decoration: none;
}

.chartFooter a:hover {
  text-decoration: underline;
}

.loading,
.error {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ifm-color-emphasis-600);
}

.error {
  color: var(--ifm-color-danger);
}

.errorHint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ifm-color-emphasis-600);
}

/* Responsive design */
@media (max-width: 768px) {
  .barRow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .barLabel {
    min-width: auto;
  }

  .barContainer {
    height: 32px;
  }

  .barValue {
    font-size: 0.75rem;
  }
}

/* Dark mode enhancements */
[data-theme='dark'] .chartContainer {
  background: var(--ifm-background-color);
  border-color: var(--ifm-color-emphasis-300);
}

[data-theme='dark'] .barContainer {
  background: var(--ifm-color-emphasis-200);
}
